#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include <sys/time.h>
int main()
{
    while(1) {
        //sleep(1);
        time_t sec = time(NULL);
        struct timeval tv;
        gettimeofday(&tv, NULL);

        if(sec!=tv.tv_sec)
            printf("%lu %s %lu:%06lu\n", sec, sec==tv.tv_sec?"==":"!=", tv.tv_sec, tv.tv_usec);
    }
    
    return 0;
}
